/**
 ******************************************************************************
 * @FilePath: \Hero\Thread\ShootTask.c
 * @Brief: 
 * @Date: 2021-01-12 15:47:29
 * @Author: Rio
 ******************************************************************************
 */
#include "ShootTask.h"
#include "Shoot.h"

void StartShootTask(void const * argument)
{
  /* USER CODE BEGIN StartShootTask */
  /* Infinite loop */
  static TickType_t xLastWakeTime;
  for(;;)
  {
    xLastWakeTime = xTaskGetTickCount();
		taskENTER_CRITICAL();

    Shooting();

    taskEXIT_CRITICAL();
		vTaskDelayUntil(&xLastWakeTime, 1);
  }
  /* USER CODE END StartShootTask */
}